export const column = [
  {
    label: '交易对',
    prop: 'symbol',
  },
  {
    label: '持仓合约的名义价值',
    prop: 'notionalAmt',
  },
  {
    label: '强平价格与标记价格的差距',
    prop: 'lpAndMpDiffPercent',
    width: 350,
    formatter(row: any) {
      return `${row.lpAndMpDiffPercent}%`;
    },
  },
  {
    label: '仓位占该合约的总持仓量(单位计算)比率%',
    prop: 'openInterestPercent',
    width: 350,

    formatter(row: any) {
      return `${row.openInterestPercent}%`;
    },
  },
  {
    label: '创建时间',
    prop: 'created_at',
  },
  {
    label: '更新时间',
    prop: 'updated_at',
  },
];

export const columnLeverage = [
  {
    label: '交易对',
    prop: 'symbol',
  },
  {
    label: '开仓杠杆',
    prop: 'initialLeverage',
  },
  {
    label: '最高名义价值',
    prop: 'notionalCap',
    width: 350,
    // formatter(row: any) {
    //   return `${row.lpAndMpDiffPercent}%`;
    // },
  },
  {
    label: '最低名义价值',
    prop: 'notionalFloor',
  },
  {
    label: '维持保证金率',
    prop: 'maintMarginRatio',
  },
  {
    label: '创建时间',
    prop: 'created_at',
  },
  {
    label: '更新时间',
    prop: 'updated_at',
  },
];
